Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break out a helper class from GenerateVisitor annotation processor. #3060

Merged
merged 3 commits into from
Jan 24, 2025

Conversation

MMcM
Copy link
Collaborator

@MMcM MMcM commented Jan 23, 2025

This allows service loading all annotation processors and even determining that this one does not apply, without having javapoet in the classpath.

This allows service loading all annotation processors and even determining that this one does not apply,
without having javapoet in the classpath.
@foundationdb-ci
Copy link
Contributor

Result of fdb-record-layer-pr on Linux CentOS 7

  • Commit ID: 92e5ae6
  • Duration 0:54:55
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@MMcM MMcM requested review from normen662 and alecgrieser January 23, 2025 21:15
@foundationdb-ci
Copy link
Contributor

Result of fdb-record-layer-pr on Linux CentOS 7

  • Commit ID: 8f66a20
  • Duration 0:54:04
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

alecgrieser
alecgrieser previously approved these changes Jan 24, 2025
Copy link
Collaborator

@alecgrieser alecgrieser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. The underlying error is a bit esoteric, but I think the idea that we should be able to construct the Processor to at least determine which annotations it processes without requiring external dependencies seems pretty defensible. We may also consider taking this on to the 4.0.559 branch

import java.util.stream.Collectors;

@SuppressWarnings("PMD.GuardLogStatement") // confused by error invocation
class GenerateVisitorAnnotationHelper {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should probably be a javadoc comment here explaining why this is a separate class from GenerateVisitorAnnotationProcessor, mostly to avoid us from doing some "harmless refactoring" in the future and putting the two classes back together again. (Likewise, we should call this out in the release notes.)

…tation/GenerateVisitorAnnotationHelper.java

Co-authored-by: Alec Grieser <[email protected]>
@foundationdb-ci
Copy link
Contributor

Result of fdb-record-layer-pr on Linux CentOS 7

  • Commit ID: 272be0c
  • Duration 0:56:52
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci
Copy link
Contributor

Result of fdb-record-layer-pr on Linux CentOS 7

  • Commit ID: 0e0723f
  • Duration 0:54:10
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@MMcM MMcM marked this pull request as ready for review January 24, 2025 18:50
@alecgrieser alecgrieser merged commit cc6447b into FoundationDB:main Jan 24, 2025
1 check passed
MMcM added a commit to MMcM/fdb-record-layer that referenced this pull request Jan 24, 2025
…oundationDB#3060)

* Break out a helper class from GenerateVisitor annotation processor.
This allows service loading all annotation processors and even determining that this one does not apply,
without having javapoet in the classpath.
MMcM added a commit that referenced this pull request Jan 25, 2025
…3060) (#3062)

* Break out a helper class from GenerateVisitor annotation processor.
This allows service loading all annotation processors and even determining that this one does not apply,
without having javapoet in the classpath.
@MMcM MMcM deleted the annot-helper branch January 29, 2025 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants